package com.weichen.studentgameexchange.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.weichen.studentgameexchange.common.enums.AuditStatus;
import com.weichen.studentgameexchange.common.enums.ReportType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 惟尘
 * @since 2025-02-05
 */
@Getter
@Setter
@ToString
@TableName("comment_report")
@Schema(name = "CommentReport对象", description = "")
public class CommentReport implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 举报ID
     */
    @Schema(description = "举报ID")
    @TableId(value = "report_id", type = IdType.AUTO)
    private Long reportId;

    /**
     * 被举报评论ID
     */
    @TableField("comment_id")
    @Schema(description = "被举报评论ID")
    private Long commentId;

    /**
     * 举报人ID
     */
    @TableField("user_id")
    @Schema(description = "举报人ID")
    private Long userId;

    /**
     * 举报类型(1-垃圾广告 2-违规内容 3-人身攻击等)
     */
    @TableField("report_type")
    @Schema(description = "举报类型(1-垃圾广告 2-违规内容 3-人身攻击等)")
    private ReportType reportType;

    /**
     * 举报详情
     */
    @Schema(description = "举报详情")
    @TableField("report_reason")
    private String reportReason;

    /**
     * 举报时间
     */
    @Schema(description = "举报时间")
    @TableField("report_time")
    private LocalDateTime reportTime;

    /**
     * 处理状态(0-待处理 1-已处理)
     */
    @TableField("audit_status")
    @Schema(description = "处理状态(0-待处理 1-已处理)")
    private AuditStatus auditStatus;

    /**
     * 处理结果(1-删除评论 2-忽略举报)
     */
    @TableField("audit_result")
    @Schema(description = "处理结果(2-删除评论 3-忽略举报)")
    private AuditStatus auditResult;
}
